import request from "@/utils/request";

export function getEquipmentTreeByPage(query) {
  return request({
    url: `/system/equipmentTree/getEquipmentTreeByPage`,
    method: "post",
    data: query,
  });
}

// 增加流程模型

export function addEquipmentTree(query) {
  return request({
    url: `/system/equipmentTree/addEquipmentTree`,
    method: "post",
    data: query,
  });
}
/**
 *
 * @param {*} query
 * @returns
 */
export function delEquipmentTree(query) {
  return request({
    url: `/system/equipmentTree/delEquipmentTree`,
    method: "post",
    data: query,
  });
}

export function updateEquipmentTree(query) {
  return request({
    url: `/system/equipmentTree/updateEquipmentTree`,
    method: "post",
    data: query,
  });
}
